﻿using System;
using System.Security.Cryptography;

namespace Having.Site.Encrypt.Exend
{
    /// <summary>
    /// 为AES加密提供的操作
    /// </summary>
    public class AESOffer
    {
        /// <summary>
        /// 偏移量
        /// </summary>
        public byte[] IV { set; get; }
        public PaddingMode PaddingMode { set; get; }
        public CipherMode Mode { set; get; }
        public int Len { set; get; }

        public AESOffer(PaddingMode _PaddingMode= PaddingMode.PKCS7, CipherMode _Mode= CipherMode.ECB, byte[] _IV=null, int _Len=128) {
            this.IV = _IV;
            this.Mode = _Mode;
            this.PaddingMode = _PaddingMode;
            this.Len = _Len;
        }
    }
}
